﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Planetwork.App_Code
{
    public class BasePage :System.Web.UI.Page
    {
        protected void Page_Title(object sender, EventArgs e)
        {
            if (this.Title == "" || string.IsNullOrWhiteSpace(this.Title))
            {
                throw new Exception("Title is empty");
            }
        }

        public BasePage()
        {
            this.PreRender += new EventHandler(Page_Title);
        }
    }
}